package com.astar.mapper;

import com.astar.entity.CustomMenu;
import com.astar.entity.RoleMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 角色和菜单关联表 Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2020-01-17
 */

@Repository
public interface RoleMenuMapper extends BaseMapper<RoleMenu> {

    List<RoleMenu> selectTreeCheck(Integer id);

    int deleteForRoleId(RoleMenu roleMenu);

    int insertSelective(RoleMenu roleMenu);
}
